import type { RouteRecordRaw } from 'vue-router'

/**
 * 静态路由（默认路由）
 */
export const staticRoutes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home/home.vue'),
    meta: {
      hidden: false
    }
  },

  {
    path: '/category',
    name: 'Category',
    component: () => import('@/views/category/index.vue'),
    meta: {
      hidden: false
    }
  },
  {
    path: '/detail',
    name: 'detail',
    component: () => import('@/views/detail/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/goodslist',
    name: 'Goodslist',
    component: () => import('@/views/goodsList/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/shopping',
    name: 'Shopping',
    component: () => import('@/views/shopping/index.vue'),
    meta: {
      hidden: false
    }
  },
  {
    path: '/shopCart',
    name: 'ShopCart',
    component: () => import('@/views/shopCart/index.vue'),
    meta: {
      hidden: false
    }
  },
  {
    path: '/pay',
    name: 'Pay',
    component: () => import('@/views/shopCart/pay/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/paysuccess',
    name: 'Paysuccess',
    component: () => import('@/views/shopCart/paysuccess/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/order',
    component: () => import('@/views/shopCart/submit/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/center',
    name: 'Center',
    component: () => import('@/views/center/index.vue'),
    meta: {
      hidden: false
    }
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/notLogin',
    name: 'NotLogin',
    component: () => import('@/views/notLogin/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import('@/views/register/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/search',
    name: 'Search',
    component: () => import('@/views/search/index.vue'),
    meta: {
      hidden: false
    }
  },
  {
    path: '/test',
    name: 'Test',
    component: () => import('@/views/Test/index.vue'),
    meta: {
      hidden: true
    }
  }
]
